<template>
	<view style="height: 300rpx">
		<l-echart ref="chart" @finished="init"></l-echart>
	</view>
</template>

<script setup>
	import * as echarts from 'echarts';
	import {
		onMounted,
		ref
	} from 'vue';
	const props = defineProps({
		options: {
			type: Object,
			requierd: true
		}
	})
	const chart = ref()
	const init = () => {
		chart.value.init(echarts, chart => {
			chart.setOption(props.options);
		});
	}
	onMounted(() => {

	})
</script>